import request from '@/utils/request'
import {getTokenLocalStorage, getUserIDLocalStorage} from "@/utils/utilLocalStorage";

/**
 * @description: 获取学生个人信息
 * @return {*} promise
 * @param teacherId
 */
export function getInfoAPI_Teacher(teacherId) {
  return request({
    url: '/teachers/'+teacherId,
    method: 'GET',
  })
}

/**
 * @description: 修改教师个人信息
 * @return {*} promise
 * @param data
 */
export function modifyAPI_Teacher(data) {
  return request({
    url: '/teachers/' + getUserIDLocalStorage(),
    method: 'PUT',
    data
  })
}

// 教师用户注销
// /teachers/{teacherId}
export function deleteTeacherAPI(teacherId) {
  return request({
    url: '/teachers/' + teacherId,
    method: 'DELETE',
  })
}
